<? if(!defined('IN_ROOT')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Manyou's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=MY_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>
<script src="js/admin.js" type="text/javascript"></script>
</head>

<body>

<div id="append">
</div>

<div class="container">
            <? if(isset($message)) { ?>            <? $type=isset($type)?$type:'correctmsg';  ?>            <div class="correctmsg"><p><?=$message?></p></div>
            <? } ?>            <h3>添加景点 <a href="index.php?admin_views/add<?=$setting['seo_suffix']?>" class="sgbtn">添加景点</a></h3>
            <br />
<div class="mainbox nomargin">
<form <? if(isset($views)) { ?>action="index.php?admin_views/edit<?=$setting['seo_suffix']?>"<? } else { ?>action="index.php?admin_views/add<?=$setting['seo_suffix']?>"<? } ?>  method="post" enctype="multipart/form-data">
<table class="opt">
<tr>
<th>景点名称:(名称必填)</th>
</tr>
<tr>
<td><input class="txt"  name="name" <? if(isset($views['name'])) { ?> value="<?=$views['name']?>" <? } ?> /></td>
</tr>
<tr>
<th>景点短称:(短称必填)</th>
</tr>
<tr>
<td><input class="txt"  name="sname" <? if(isset($views['sname'])) { ?> value="<?=$views['sname']?>" <? } ?> /></td>
</tr>
<tr>
<th>所属地区:(地区必选)</th>
</tr>
<tr>
<td><?=$area_js?></td>
</tr>
<tr>
<th>景点图片:(景点图片请选jpg、gif、png格式，建议添加)</th>
</tr>
<tr>
<td><input type="file" size="30" name="imgurl" /></td>
</tr>
                <? if(file_exists('data/attach/viewsimg/'.$views['pics'])) { ?>               <tr>
<td><img src="<?=SITE_URL?>data/attach/viewsimg/<?=$views['pics']?>" width="80" height="80"/></td>
</tr>
                <? } ?><tr>
<th>所属分类:(选填)<input class="checkbox" id="chkall" onclick="checkall('cates[]')" type="checkbox" name="chkall"><label for="chkall">全选</label></th>
</tr>
<tr>
<td><?=$cate_js?></td>
</tr>
<tr>
<th>景点关键字:</th>
</tr>
<tr>
<td><input class="txt" <? if(isset($views['keywords'])) { ?> value="<?=$views['keywords']?>" <? } ?> name="keywords" /></td>
</tr>
<tr>
<th>景点描述:</th>
</tr>
<tr>
<td><textarea class="area" name="descs"  style="height:100px;width:300px;"><? if(isset($views['descs'])) { ?><?=$views['descs']?><? } ?></textarea></td>
</tr>
<tr>
<th>景点地址:</th>
</tr>
<tr>
<td><textarea class="adress" name="adress"  style="height:100px;width:300px;"><? if(isset($views['adress'])) { ?><?=$views['adress']?><? } ?></textarea></td>
</tr>
<tr>
<th>景点电话:</th>
</tr>
<tr>
<td><input class="txt"  name="tel" <? if(isset($views['tel'])) { ?> value="<?=$views['tel']?>" <? } ?> /></td>
</tr>
</table>
<div class="opt">
                                <? if(isset($views['id'])) { ?>                                <input type="hidden" value="<?=$views['id']?>" name="id" />
                                <input type="hidden" value="<?=$views['image']?>" name="imgpath" />
                                <? } ?><input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
</form>
</div>
</div>

</body>

</html>
